import {API} from '@/api/index'

// 人员管理查询器
// 姓名,职位,所在项目,职级,查询起始日期,查询结束日期,当前状态,部门
export const selectPersonApi = (userName, positionName, projectName, level, startTime, endTime, stateName, department) => {
    return API('/user/queryUser', {
        userName,
        positionName,
        projectName,
        level,
        startTime,
        endTime,
        stateName,
        department
    }, 'POST', '')
}

export const changePersonApi = (userId, userName, position, entryTime, depaetment, userPhone, userEmail) => {
    return API('/user/update', {
        userId, userName, position, entryTime, depaetment, userPhone, userEmail
    }, 'PUT', '')
}
